home *** CD-ROM | disk | FTP | other *** search
- Path: news2.ios.com!usenet
- From: vlad@gramercy.ios.com (Vlastimil Adamovsky)
- Newsgroups: comp.lang.c++
- Subject: Re: Fahrenheight to Celsius?
- Date: Fri, 16 Feb 1996 06:03:48 GMT
- Organization: Internet Online Services
- Message-ID: <4g163i$eb5@news2.ios.com>
- References: <4fra3q$ddt@newsbf02.news.aol.com>
- NNTP-Posting-Host: ppp-37.ts-7.hck.idt.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- pauldo@aol.com (PaulDo) wrote:
-
- >Could someone show me how to write a program that converts fahrenheit to
- >celsius and vice versa in C++? I would really appreciate it.
- >PaulDo
-
- One Fahrenheit degree is 5/9 of a Celsius degree.
-
- To convert Fahrenheit into Celsius, substract 32, multiply by 5 and
- divide by 9.
-
- To convert Celsius into Fahrenheit, multiply by 9, divide by 5, and
- add 32.
- The freezing point of water is 32 degrees F.
-
- *******************************************
- * Vlastimil Adamovsky *
- * Smalltalk, C++ and Envelop development *
- *******************************************
-
-